<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <title>报告</title>
    <base href="<%=basePath %>"/>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <link rel="stylesheet" href="assets/css/bootstrap.css"/>
    <%--<link rel="stylesheet" href="assets/layui/css/layui.css">--%>
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/jquery.validator.min.js"></script>
    <script src="assets/layui/layui.all.js"></script>
    <script src="assets/js/jQuery.print.js"></script>

</head>
<body style="margin:0 auto;text-align:center;" >
<!--startprint-->
<%--<div id='ganburenmianbaio' class='WordSection1' &lt;%&ndash;style='width:750px;margin:0 auto;text-align:center;vertical-align: middle;'&ndash;%&gt;>--%>
    <div class="col-lg-10 col-lg-offset-1">

        <h1>体检报告</h1>

        <p>体检人：${report.user.userName}
            时间：${report.reportTime}
        </p>

        <c:forEach items="${report.items}" var="item">
            <h3>项目：${item.itemName}</h3>
            <c:if test="${item.resultType=='机械输出'||item.resultType=='手动输出'}">
                <table class="table">
                    <tr>
                        <th style="text-align: center">细项</th>
                        <th style="text-align: center">指标</th>
                        <th style="text-align: center">结果</th>
                        <th style="text-align: center">单位</th>
                        <th style="text-align: center">参考值</th>
                    </tr>
                    <c:forEach items="${item.details}" var="detail">
                        <tr>
                            <td>${detail.detailName}</td>
                            <td>${detail.hint}</td>
                            <td>${detail.result}</td>
                            <td>${detail.unit}</td>
                            <td>${detail.min}~${detail.max}</td>
                        </tr>
                    </c:forEach>
                </table>
            </c:if>
            <c:if test="${item.resultType=='图片输出'}">
                <c:forEach items="${item.details}" var="detail">
                    <img src="${detail.result}" class="img-responsive center-block">
                </c:forEach>
            </c:if>
            <%--<c:if test="${item.resultType=='手动输出'}">--%>
                <%--<c:forEach items="${item.details}" var="detail">--%>
                    <%--<img src="${detail.remark}">--%>
                <%--</c:forEach>--%>
            <%--</c:if>--%>
            <p style="text-align: left;font-weight:bold">小结：</p>
            <p style="text-align: left">&emsp;&emsp;${item.remark}</p>
        </c:forEach>
    <p style="text-align: left;font-weight:bold">总结：</p>
    <p style="text-align: left">&emsp;&emsp;${report.guidance}</p>
    <p style="text-align: left">&emsp;&emsp;${report.suggest}</p>
    </div>
<%--</div>--%>
</body>
</html>